package it.traveldream.entities;

import java.math.BigDecimal;

import javax.persistence.Embeddable;

@Embeddable
public class HotelRoom {
	
	private BigDecimal price;
	private int rooms;
	
	protected HotelRoom() {
		super();
	}
	
	public HotelRoom(BigDecimal price, int rooms){
		this.price = new BigDecimal(price.toPlainString());
		this.rooms = rooms;
	}

	public BigDecimal getPrice() {
		return this.price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public int getRooms() {
		return this.rooms;
	}

	public void setRooms(int rooms) {
		this.rooms = rooms;
	}
}
